<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<link rel="stylesheet" href="http://i.gtimg.cn/vipstyle/frozenui/2.0.0/css/frozen.css"/>
<html>
<head>
    <title>login</title>
    <%--切换验证码,加载完成后点击验证码图片--%>
    <script>
        window.onload=function (ev) {
            document.getElementById("img").onclick=function (ev1) {
                this.src = "/src/org/csu/mypetstore/web/servlets/CheckCodeServlet?time="+new Date().getTime()

                ;//加上一个时间戳来改变验证码
            }
        }
    </script>
</head>
<body>
<form action="/day16/loginServlet" method="post">//表单提交到loginservlet界面
    <div id="Catalog" class="ui-form ui-border-t">
        <div class="ui-form-item ui-border-b">
            <label>
                用户名
            </label>
            <input type="text" name="username">
        </div>
        <div class="ui-form-item ui-border-b">
            <label>
                密码
            </label>
            <input type="password" name="password">
        </div>
        <div class="ui-form-item ui-border-b">
            <label>
                验证码
            </label>
            <input type="text" name="checkCode">
        </div>
        <img id="img" src=checkCode>
        <div class="ui-form-item ui-border-b">
            <label>
                登录
            </label>
            <input type="submit" value="登录">
        </div>
    </div>
</form>
</body>
</html>
